package com.example.springcloudusageserver.service;


import com.example.springcloudusageserver.response.JsonResult;

import com.example.springcloudusageserver.response.SelectResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "spring-cloud-blockchain-server")
@RequestMapping("/blockchain")
public interface BlockchainService {
    @GetMapping("/hello")
    String hello();
    @GetMapping("/CRUDInsert")
    JsonResult CRUDInsert(@RequestParam(name="name") String name, @RequestParam(name="item_name") String item_name, @RequestParam(name="item_id") String item_id);
    @GetMapping("/CRUDSelect")
    SelectResult CRUDSelect(@RequestParam(name="name") String name);

}
